﻿#if UNITY_EDITOR
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;


public class ExcelEditorWindow : EditorWindow
{
	string m_WindowName = "Excel Editor";
	bool clickOPen = false;
	TextAsset textAsset;
	private void OnEnable()
	{
				
	}

	private void OnGUI()
	{
		
		if (EditorGUILayout.Toggle("开启",clickOPen) == true)
			clickOPen = true;
		else
			clickOPen = false;
		if (clickOPen) {
			EditorGUILayout.BeginFadeGroup(1.0f);
			EditorGUILayout.TextField("Name", m_WindowName);
			EditorGUILayout.EndFadeGroup();
		}

		textAsset = EditorGUILayout.ObjectField("Excel Text Field :", textAsset, typeof(TextAsset), true) as TextAsset;

	}


	[MenuItem("Excel/Edit")]
	static void WindowInit()
	{
		var window = EditorWindow.GetWindow(typeof(ExcelEditorWindow), true, "Excel 编辑");
		window.Show();
	}
}
#endif